package ch.bfh.abhmcm.SoftwareEngineeringAndDesign.view.mainframe.generateRFCPanel.generateRFCSubs.listeners;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import ch.bfh.abhmcm.SoftwareEngineeringAndDesign.model.User;
import ch.bfh.abhmcm.SoftwareEngineeringAndDesign.view.mainframe.generateRFCPanel.GenerateRFCPanel;
import ch.bfh.abhmcm.SoftwareEngineeringAndDesign.view.mainframe.generateRFCPanel.generateRFCSubs.ChooseEditRFCDialog;

public class EditButtonListener implements ActionListener{
	
	private User user;
	private  GenerateRFCPanel generateRFCPanel;
	
	public EditButtonListener(GenerateRFCPanel generateRFCPanel){
		
		this.user = generateRFCPanel.getMainframe().getSignedInUser();
		this.generateRFCPanel = generateRFCPanel;
		
	}

	@Override
	public void actionPerformed(ActionEvent e) {

		new ChooseEditRFCDialog(this.generateRFCPanel, this.user);
		
	}

}
